import userMgr from '@/biz/user'
import biApi from '@/config/server/api/bi.js'
import userApi from '@/config/server/api/user.js'

function casePage(info) {
  return biApi.caseClueCustomer.casePage.fetch(info)
}

function buildingUndertakingConfig(info) {
  return userApi.caseClueCustomer.buildingUndertakingConfig.fetch(info)
}

function caseConfigByBuildingId(info) {
  return userApi.caseClueCustomer.caseConfigByBuildingId.fetch(info)
}

function buildingSaveOrUpdate(info) {
  return userApi.caseClueCustomer.buildingSaveOrUpdate.fetch(info)
}

function receiverSaveOrUpdate(info) {
  return userApi.caseClueCustomer.receiverSaveOrUpdate.fetch(info)
}

function getReceiverInfoByBId(info) {
  return userApi.caseClueCustomer.getReceiverInfoByBId.fetch(info)
}

function caseInCallConfigByBuildingId(info) {
  return userApi.caseClueCustomer.caseInCallConfigByBuildingId.fetch(info)
}

function clearAllUndertakings(info) {
  return userApi.caseClueCustomer.clearAllUndertakings.fetch(info)
}

function exportOfCaseReceiver(info) {
  return userApi.caseClueCustomer.exportOfCaseReceiver.fetch(info)
}

export default {
  casePage,
  buildingUndertakingConfig,
  caseConfigByBuildingId,
  buildingSaveOrUpdate,
  receiverSaveOrUpdate,
  getReceiverInfoByBId,
  caseInCallConfigByBuildingId,
  clearAllUndertakings,
  exportOfCaseReceiver
}
